<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Upload extends CI_Controller {
	
	public function index()
	{
		$this->load->view('upload_view');
	}
	
	public function doUp()
	{
		$tempfile = $_FILES["upfile"];
		print_r($tempfile);
		move_uploaded_file($tempfile["tmp_name"],"./temp/".$tempfile["name"]);
	}
	
}
